package com.ss.android.article.base.feature.message;

import android.content.Context;
import android.support.v4.app.FragmentActivity;
import android.view.View;

import com.ss.android.common.lib.MobClickCombiner;
import com.ss.android.newmedia.util.AppUtil;

final class k implements View.OnClickListener {
    private final f a;

    k(f arg1) {
        this.a = arg1;

    }

    public final void onClick(View arg9) {
        int v3 = View.GONE;
        FragmentActivity v1 = this.a.getActivity();
        if(v1 != null && this.a.d != null) {
            if(AppUtil.c(((Context)v1), this.a.d.openUrl, this.a.d.packageName)) {
                this.a.c.setVisibility(v3);
            }
            else if(!this.a.d.a(((Context)v1))) {
                this.a.c.setVisibility(v3);
            }

            MobClickCombiner.onEvent(((Context)v1), "notify", "tips_click", this.a.d.id, 0);
        }
    }
}

